﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using Library.Wcf;

namespace WSTestClient
{
    class Program
    {
        static void Main(string[] args)
        {
            var client = new UserWcfClient("http://pi:4321/User");
            Console.WriteLine("initialized.");
            Console.WriteLine(client.ValidateUser("Admin", "123qwe"));
            for(int i=0; i<20; i++)
            {
                Console.WriteLine("call: " + client.ValidateUser("User", "123qwe"));
                Console.WriteLine("call: " + client.ValidateUser("User", "123qw"));
            }

            Console.ReadLine();
        }
    }
}
